<?php

// mbilling/BillingBundle/Entity/ordersSharedTarifs.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity
 */
class ordersSharedTarifs
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
    
    /**
     * @ORM\Column(type="string", length=45)
     * @assert\NotBlank
     */
    protected $name;
    
    /**
     * @ORM\Column(type="float")
     * @assert\NotBlank
     * @assert\Type("numeric")
     */
    protected $cost;
    
    /**
     * @ORM\Column(type="float")
     * @assert\NotBlank
     * @assert\Type("numeric")
     */
    protected $hdd;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $cron_access;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $ftp_access;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $dns_access;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $email_access;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $mysql_access;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $backup_access;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $ssh_access;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $ssl_access;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $cgi_bin_access;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $perl_php_access;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $anonymous_ftp_access;
    
    /**
     * @ORM\Column(type="integer")
     * @assert\Type("numeric")
     */
    protected $ftp_count;
	
    /**
     * @ORM\Column(type="integer")
     * @assert\Type("numeric")
     */
    protected $mysql_count;

    /**
     * @ORM\Column(type="integer")
     * @assert\Type("numeric")
     */
    protected $site_count;

    /**
     * @ORM\Column(type="float")
     * @assert\Type("numeric")
     */
    protected $trafic_count;

    /**
     * @ORM\Column(type="integer")
     * @assert\Type("numeric")
     */
    protected $email_count;

    /**
     * @ORM\Column(type="integer")
     * @assert\Type("numeric")
     */
    protected $domain_count;

    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_active;
    
    /**
     * @ORM\Column(type="float")
     */
    protected $add_ip_cost;
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }

    public function setCost($cost)
    {
        $this->cost = $cost;
    }
    public function getCost()
    {
        return $this->cost;
    }

    public function setHdd($hdd)
    {
        $this->hdd = $hdd;
    }
    public function getHdd()
    {
        return $this->hdd;
    }

    public function setCronAccess($cron_access)
    {
        $this->cron_access = $cron_access;
    }
    public function getCronAccess()
    {
        return $this->cron_access;
    }

    public function setFtpAccess($ftp_access)
    {
        $this->ftp_access = $ftp_access;
    }
    public function getFtpAccess()
    {
        return $this->ftp_access;
    }

    public function setDnsAccess($dns_access)
    {
        $this->dns_access = $dns_access;
    }
    public function getDnsAccess()
    {
        return $this->dns_access;
    }

    public function setEmailAccess($email_access)
    {
        $this->email_access = $email_access;
    }
    public function getEmailAccess()
    {
        return $this->email_access;
    }

    public function setMysqlAccess($mysql_access)
    {
        $this->mysql_access = $mysql_access;
    }
    public function getMysqlAccess()
    {
        return $this->mysql_access;
    }

    public function setBackupAccess($backup_access)
    {
        $this->backup_access = $backup_access;
    }
    public function getBackupAccess()
    {
        return $this->backup_access;
    }

    public function setSshAccess($ssh_access)
    {
        $this->ssh_access = $ssh_access;
    }
    public function getSshAccess()
    {
        return $this->ssh_access;
    }

    public function setSslAccess($ssl_access)
    {
        $this->ssl_access = $ssl_access;
    }
    public function getSslAccess()
    {
        return $this->ssl_access;
    }

    public function setCgiBinAccess($cgi_bin_access)
    {
        $this->cgi_bin_access = $cgi_bin_access;
    }
    public function getCgiBinAccess()
    {
        return $this->cgi_bin_access;
    }
    
    public function setPerlPhpAccess($perl_php_access)
    {
        $this->perl_php_access = $perl_php_access;
    }
    public function getPerlPhpAccess()
    {
        return $this->perl_php_access;
    }
    
    public function setAnonymousFtpAccess($anonymous_ftp_access)
    {
        $this->anonymous_ftp_access = $anonymous_ftp_access;
    }
    public function getAnonymousFtpAccess()
    {
        return $this->anonymous_ftp_access;
    }

    public function setFtpCount($ftp_count)
    {
        $this->ftp_count = $ftp_count;
    }
    public function getFtpCount()
    {
        return $this->ftp_count;
    }

    public function setMysqlCount($mysql_count)
    {
        $this->mysql_count = $mysql_count;
    }
    public function getMysqlCount()
    {
        return $this->mysql_count;
    }

    public function setSiteCount($site_count)
    {
        $this->site_count = $site_count;
    }
    public function getSiteCount()
    {
        return $this->site_count;
    }
    
    public function setTraficCount($trafic_count)
    {
        $this->trafic_count = $trafic_count;
    }
    public function getTraficCount()
    {
        return $this->trafic_count;
    }

    public function setEmailCount($email_count)
    {
        $this->email_count = $email_count;
    }
    public function getEmailCount()
    {
        return $this->email_count;
    }

    public function setDomainCount($domain_count)
    {
        $this->domain_count = $domain_count;
    }
    public function getDomainCount()
    {
        return $this->domain_count;
    }
    
    public function setIsActive($is_active)
    {
        $this->is_active = $is_active;
    }
    public function getIsActive()
    {
        return $this->is_active;
    }
   
    public function setAddIpCost($add_ip_cost)
    {
        $this->add_ip_cost = $add_ip_cost;
    }
    public function getAddIpCost()
    {
        return $this->add_ip_cost;
    }
    
    public function getSalt()
    {
        return "niggas";
    }
    
    public function initDefaultEntity()
    {
        $this->setName('new');
        $this->setCost('13.5');
        $this->setHdd('50');
        $this->setCronAccess('1');
        $this->setFtpAccess('0');
        $this->setDnsAccess('1');
        $this->setEmailAccess('1');
        $this->setMysqlAccess('1');
        $this->setBackupAccess('0');
        $this->setFtpCount('0');
        $this->setMysqlCount('4');
        $this->setSiteCount('3');
        return $this;
    }
}
?>
